import service from '@/request/index'
//基本设置 查询
export const getBduTesterAllAPI = params => {
  return service({
    method: 'get',
    url: '/api/testingstep/basic/all',
    params
  })
};
//基本设置 新增
export const createBduTesterAPI = data =>{
  return service({
    method: 'post',
    url:'/api/testingstep/basic/create',
    data
  })
};
//通道 查询
export const queryPassWayAllAPI = params =>{
  return service({
    method:'get',
    url:'/api/passageway/all',
    params
  })
};
//通道 新增
export const createPassWayAPI = data =>{
  return service({
    method:'post',
    url:'/api/passageway/create',
    data
  })
};
//步骤 查询
export const queryTestStepAllAPI = params => {
  return service({
    method: 'get',
    url: '/api/testingstep/all',
    params
  })
};
//步骤 新增
export const createTestStepAllAPI = data => {
  return service({
    method: 'post',
    url: '/api/testingstep/create',
    data
  })
};
//步骤 删除
export const deleteTestStepAllAPI = data => {
  return service({
    method: 'post',
    url: '/api/testingstep/del',
    data
  })
};

/**
 * BDU主页
 * */
//工装 查询
export const queryWorkClotheAPI = params => {
  return service({
    method: 'get',
    url: '/api/workclothe/get',
    params
  })
};
//工装 新增
export const createWorkClotheAPI = data => {
  return service({
    method: 'post',
    url: '/api/workclothe/set',
    data
  })
};
//测试工站配方管理  查询
export const queryTesterRecipeAPI = params => {
  return service({
    method: 'get',
    url: '/api/workstationrecipe/get',
    params
  })
};
//测试工站配方管理  新增
export const createTesterRecipeAPI = data => {
  return service({
    method: 'post',
    url: '/api/workstationrecipe/set',
    data
  })
};
/**
 *  手动操做接口
 *  */
export const createBduManual_ny_API = data => {
  return service({
    method: 'post',
    url: '/api/testingresult/debugging/ny',
    data
  })
};
export const createBduManual_jy_API = data => {
  return service({
    method: 'post',
    url: '/api/testingresult/debugging/jy',
    data
  })
};
export const createBduManual_yj_API = data => {
  return service({
    method: 'post',
    url: '/api/testingresult/debugging/yj',
    data
  })
};
export const createBduManual_dz_API = data => {
  return service({
    method: 'post',
    url: '/api/testingresult/debugging/dz',
    data
  })
};
export const createBduManual_dt_API = data => {
  return service({
    method: 'post',
    url: '/api/testingresult/debugging/dt',
    data
  })
};
export const createBduManual_he_API = data => {
  return service({
    method: 'post',
    url: '/api/testingresult/debugging/he',
    data
  })
};
export const createBduManual_can_API = data => {
  return service({
    method: 'post',
    url: '/api/testingresult/debugging/can',
    data
  })
};

/**
 * BDU主页 接口
 */
// 开始测试
export const getStartTestApi = params =>{
  return service({
    method:'get',
    url:'/api/testingresult/start',
    params
  })
};
//结束测试
export const getStopTestApi = params =>{
  return service({
    method:'get',
    url:'/api/testingresult/stop',
    params
  })
};
//查询测试结果
export const getTesterResult = params =>{
  return service({
    method:'get',
    url:'/api/testingresult/get',
    params
  })
};
//查询测试结果明细
export const  getTesterResultDetails = params =>{
  return service({
    method:'get',
    url:'/api/testingresult/entry/all',
    params
  })
};
//查询数量统计
export const  getTesterResultCount = params =>{
  return service({
    method:'get',
    url:'/api/testingresult/get/count',
    params
  })
};
//查询IP的接口
export const getDeviceIp = ()=>{
  return service({
    method:'get',
    url:'/api/testingresult/ip',
  })
};


